package kr.hkit.powerjava.chapter14.wb.pg;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

public class buttonFram extends JFrame {

	private JPanel contentPane;
	private button panel;
	private LabelandTextPanel panel_1;
	private text panel_2;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					buttonFram frame = new buttonFram();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public buttonFram() {
		initialize();
	}
	private void initialize() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		
		panel = new button();
		contentPane.add(panel, BorderLayout.CENTER);
		
		panel_1 = new LabelandTextPanel((String) null);
		contentPane.add(panel_1, BorderLayout.NORTH);
		
		panel_2 = new text();
		contentPane.add(panel_2, BorderLayout.SOUTH);
	}

	public LabelandTextPanel getPanel_1() {
		return panel_1;
	}

	public void setPanel_1(LabelandTextPanel panel_1) {
		this.panel_1 = panel_1;
	}

	public text getPanel_2() {
		return panel_2;
	}

	public void setPanel_2(text panel_2) {
		this.panel_2 = panel_2;
	}
	
	

}
